package com.appkudos.model;

import android.graphics.drawable.Drawable;


public class App implements Comparable<App>{
	
	private String appid;
	private String appName;
	private String appDesc;
	private boolean isFav;
	private boolean isInstalled;
	private String dateInstalled;
	private Drawable icon;
	private int pos;
	
	public App(String id, String name, String desc){
		appid = id;
		appName = name;
		appDesc = desc;
	}
	
	public App(String id, String name, String desc, String dateInstalled, boolean isFav, boolean isInstalled){
		appid = id;
		appName = name;
		appDesc = desc;
		this.dateInstalled = dateInstalled;
		this.isFav = isFav;
		this.isInstalled = isInstalled;
	}	

	public App(String id, String name, String desc, String dateInstalled, boolean isFav, boolean isInstalled, Drawable icon){
		appid = id;
		appName = name;
		appDesc = desc;
		this.dateInstalled = dateInstalled;
		this.isFav = isFav;
		this.isInstalled = isInstalled;
		this.icon = icon;
	}	
	
	public String getAppid() {
		return appid;
	}
	public void setAppid(String appid) {
		this.appid = appid;
	}
	public String getAppName() {
		return appName;
	}
	public void setAppName(String appName) {
		this.appName = appName;
	}
	public String getAppDesc() {
		return appDesc;
	}
	public void setAppDesc(String appDesc) {
		this.appDesc = appDesc;
	}
	public boolean isFav() {
		return isFav;
	}
	public void setFav(boolean isFav) {
		this.isFav = isFav;
	}
	public boolean isInstalled() {
		return isInstalled;
	}
	public void setInstalled(boolean isInstalled) {
		this.isInstalled = isInstalled;
	}
	public String getDateInstalled() {
		return dateInstalled;
	}
	public void setDateInstalled(String dateInstalled) {
		this.dateInstalled = dateInstalled;
	}
	public Drawable getIcon(){
		return icon;
	}
	public void setIcon(Drawable icon){
		this.icon = icon;
	}
	public int getPos(){
		return pos;
	}
	public void setPos(int Position){
		pos = Position;
	}
	@Override
	public int compareTo(App app) {
        return appName.compareTo(app.appName);
    }
	
}
